<template>
	<view class="cell-list">
		<view class="cell-item" v-for="(item,index) in itemList" :key="index" @click="onClick(item.url)">
			<view>{{item.name}}</view>
			<text class="iconfont iconarrow-right1"></text>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				itemList:[{
					name:this.$t('operate.accountInformation'),//账户信息
					url:'account_info/index'
				},{
					name:this.$t('operate.homepageSharePicture'),//首页分享图
					url:'home_share/index'
				},{
					name:this.$t('operate.businessInformation'),//商家信息
					url:'merchant_info/index'
				},{
					name:this.$t('operate.appletCollectionInformation'),//小程序收款信息
					url:'collection_info/index'
				},{
					name:this.$t('operate.orderAging'),//订单时效
					url:'order_aging/index'
				}]
			}
		},
		onShow() {
			uni.setNavigationBarTitle({
				title: this.$t('navigation.merchantSettings')
			});
		},
		methods:{
			onClick(url){
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style lang="scss">
	.cell-list{
		.cell-item{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 34rpx 31rpx;
			background-color: #FFFFFF;
			border-bottom: 1rpx solid #EEEEEE;
			.iconfont{
				font-size: 20rpx;
			}
		}
	}
</style>
